home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1996 #15 / Monster Media Number 15 (Monster Media)(July 1996).ISO / math / alged34.zip / ALGEDSRC.ZIP / ALGVARS.H < prev    next >
C/C++ Source or Header  |  1996-06-06  |  2KB  |  54 lines

  1. /*-----------------------------------------------------------------
  2.    GLOBAL VARIABLES
  3.  
  4.    Notes: The files algmain.h and this one are almost the same but one
  5.    has the initializers.  There are lots of globals, and yes I did go
  6.    to college and yes they did teach me that global variables are poor
  7.    programming practice, but this program started out as a little hack, and
  8.    now it is a very big hack, and in that way is very much like this
  9.    sentence!  I might add that some of the most lucrative software in
  10.    the industry are hacks and have lots of global variables.  They didn't
  11.    tell me that in college ;-)
  12. */
  13. extern node *firf,*curf;
  14. extern node *src,*tgt;
  15. extern char lang[10];          /* language */
  16. extern int sigdig;        /* doubles have at most 16 sig dig. */
  17. extern double maxrat;
  18. extern int bold1,bold2,norm,mcolor;
  19. extern int panx,pany,yadj;
  20. extern int postfix;
  21. extern long heapsz;         // size of heap in bytes
  22. extern int maxpow;
  23. extern int numsee;         /* number of formulas currently visible */
  24. extern int point;          /* europe or usa(1) decimals */
  25. extern int ch8;            /* allow 8-bit characters (graphical) */
  26. extern struct text_info ti;    /* text mode information */
  27.  
  28. extern int pr[20];
  29. extern uchar kname[20][3];
  30. extern uchar piname[10];
  31. extern uchar ename[10];
  32. extern uchar iname[10];
  33. extern uchar errname[10];
  34. extern uchar infname[10];
  35. extern uchar halfname[10];
  36. extern uchar qtrname[10];
  37. extern uchar hline;
  38. extern uchar vline;
  39. extern uchar urc;
  40. extern uchar llc;
  41. extern uchar lrc;
  42. extern uchar ulc;
  43. extern uchar comma;
  44.  
  45. extern int mwidth;             /* max menu item width */
  46. extern int mheight;           /* see show_menu for calc */
  47. extern int numm;
  48. extern struct {
  49.   char name[30];
  50.   int x,y,hot,fid;
  51. } menu[maxm+10];
  52. extern char top[80],bottom[80],endlist[80],keyname[80];
  53. extern char *msg[MAXM];       /* store translatable text */
  54.